<html>
<head>
	<title></title>
	<script type="text/javascript" src="build/react.js"></script>
	<script type="text/javascript" src="build/react-dom.js"></script>
	<script type="text/javascript" src="build/browser.min.js"></script>
	<script type="text/javascript" src="build/jquery.min.js"></script>
</head>
<body>
	<div id="root"></div>
	<script type="text/babel">
		var styles = {
			showInf:{
				color:'#fff9ae',
				background:'#99ffc3',
				lineHeight:'60px',
				fontSize:'24px',
				borderRadius:'3px',
				textAlign:'center',
				margin:'8px auto',
				width:'60%',
				overflow:'hidden'
			}
		}
		var names = ['asdfasdf',"asdfasdf","a南北朝的"];
		var Message = React.createClass({
			getDefaultProps:function  (argument) {
				return {
					name: "\'yourName\'"
				}
			},
			propTypes:{
				name:React.PropTypes.string.isRequired,
			},
			render:function(){
				return <h1 style={styles.showInf}> {this.props.name}</h1>
			}
		});

		var Input = React.createClass({
			getInitialState:function(){
				return {
					value:""
				}
			},
			handleChange:function(e){
				this.setState({value:e.target.value})
			},
			render:function(){
				return (
					<div>
						<input type="text" onChange={this.handleChange} />
						<Message name={this.state.value} />
					</div>
					)
			}
		});
		ReactDOM.render(
			<Input />,
			document.getElementById("root")
		);
	</script>

</body>
</html>